package com.badu.app.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.badu.app.service.IAppBannerService;
import com.badu.common.utils.R;

@Validated
@RestController
@RequestMapping("api/app/banner")
public class AppBannerApi {
	
	@Autowired
	private IAppBannerService appBannerService;
	
	@GetMapping("queryAppBanner")
	public R queryAppBanner() {
		return R.ok().put("data", appBannerService.queryAppBanner());
	}

}
